package com.xiangge.domain;
interface A {
    void show();
}
interface B {
    int add(int a, int b);
}
class C implements A, B {
    @Override
    public void show() {
        System.out.println("重写方法");
    }
    @Override
    public int add(int a, int b) {
        return a + b;
    }
}
class Demo {
    public static void main(String[] args) {
        C c = new C();

        System.out.println( c.add(4, 2));
        c.show();
    }
}
/*
public class InterfaceDemo46 {

}
*/
